﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RegisterApp.Domain.Entities
{
    public class Match
    {
        [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int MatchId { get; set; }
        public string Name { get; set; }
        public DateTime Date { get; set; }
        public int NumPlayer { get; set; }
        public string Time { get; set; }
        //public string Stadium { get; set; }
        public string Info { get; set; }
        public bool Status { get; set; }
        public Address Stadium { get; set; }
        public Match()
        {
            Stadium = new Address();
        }



        public virtual ICollection<Player> Players { get; set; }
        public virtual ICollection<Team> Teams { get; set; }
        public virtual ICollection<Comment> Comments { get; set; }

       
    }
}